	function getProductKind(url,selectObj,db_kind){
		$.ajax({cache:false, 
		url:url, 
		type:"post", 
		dataType:"json", 
		success:function(json){updateProductKind(json,selectObj,db_kind);}});
	}

	function updateProductKind(json,selectObj,db_kind){
		initProductKind(selectObj);
		for(var i in json){
			var option = document.createElement("option");
			var value = json[i].id;
			var text = json[i].name;
			if(value==db_kind){
				option.selected=true;
			}
			option.text = text;
			option.value = value;
			selectObj.options[selectObj.options.length] = option;
		}
	}
	function initProductKind(obj){
		obj.options.length = 0;
		var firstOption = document.createElement("option");
		firstOption.text="请选择";
		firstOption.value="-1";
		obj.options[obj.options.length] = firstOption;
}